package com.bytz.modules.cms.echop.model;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.bytz.common.aspect.annotation.Dict;
import com.bytz.modules.cms.common.excel.ExcelDictConvert;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
public class OrderApproveExcel {

    @ColumnWidth(6)
    @ExcelProperty({"订单审批记录", "序号"})
    private Integer sortNumber;

    @ColumnWidth(20)
    @ExcelProperty({"订单审批记录", "审批节点"})
    private String taskName;

    @ColumnWidth(13)
    @ExcelProperty({"订单审批记录", "审批人"})
    private String assigneeName;

    @ColumnWidth(12)
    @ExcelProperty(value = {"订单审批记录", "操作"}, converter = ExcelDictConvert.class)
    @Dict(dicCode = "process_instance_operation")
    private String operation;

    @ColumnWidth(20)
    @ExcelProperty({"订单审批记录", "审核时间"})
    private LocalDateTime endDate;

    @ColumnWidth(30)
    @ExcelProperty({"订单审批记录", "意见"})
    private String opinion;


}
